package top.milkbox.sys.modular.permission.mapStruct;

import org.mapstruct.Mapper;
import top.milkbox.sys.modular.permission.entity.SysPermissionEntity;
import top.milkbox.sys.modular.permission.param.SysPermissionAddParam;
import top.milkbox.sys.modular.permission.param.SysPermissionEditParam;
import top.milkbox.sys.modular.permission.vo.SysPermissionVo;

/**
 * SysPermission相关的实体类之间的转换<br />
 * 此接口由MapStruct在编译时生成实现代码，详细解释请看readme<br />
 *
 * @author milkbox
 * @date 2024-11-19
 */
@Mapper
public interface SysPermissionMapStruct {

    /**
     * entity转vo
     */
    SysPermissionVo entityToVo(SysPermissionEntity entity);

    /**
     * addParam转entity
     */
    SysPermissionEntity addParamToEntity(SysPermissionAddParam addParam);

    /**
     * editParam转entity
     */
    SysPermissionEntity editParamToEntity(SysPermissionEditParam editParam);

}